<% include ../pageHeader %>
<%
var strPageLinks = helper.generatePageLinks(intEntryCount, intEntryPerPage, intCurrentPage, 15, "?");
 %>
<div id="mainWrapper">
    <div id="content" class="content">
        <div id="innerContent">
            <div class="article-top">
                <div class="pages">
                    <%-strPageLinks%>
                </div>
            </div>

            <div class="listbox">
                <div style="width: 99%">
                    <table cellpadding="2" cellspacing="2" width="100%">
                        <tr>
                            <td class="listbox-header"><%=__('username')%> / <%=__('homepage')%></td>
                            <td class="listbox-header"><%=__('articles')%></td>
                            <td class="listbox-header"><%=__('comments')%></td>
                            <td class="listbox-header"><%=__('last_visit')%></td>
                            <%if(theUser.loggedIn){%>
                            <td class="listbox-header"><%=__('email')%></td>
                            <%}%>
                        </tr>
                        <%
                        for(var i=0;i<arrUser.length;i++){
                            var tUser=ctx.service.user;
                            tUser.fill(arrUser[i]);
                        %>
                        <tr>
                            <td class="listbox-entry" style="word-break: normal;">
                                <%if(theUser.groupID==1){%>
                                <a href="?act=delete&id=<%=tUser.id%>" onclick="return confirm('<%=__('confirm_delete_user')%>?')"><img src="<%=theCache.settings["imageFolder"]%>/icon_del.gif" title="<%=__('delete')%>" /></a>
                                <%}%>&nbsp;&nbsp;
                                <a href="?id=<%=tUser.id%>" title="<%=__('user_info')%>"><%=helper.HTMLEncodeLite(tUser.username)%></a>
                                <%if(tUser.homepage){%><a href="<%=helper.HTMLEncodeLite(tUser.homepage)%>" target="_blank" ref="nofollow" alt="<%=helper.HTMLEncodeLite(tUser.homepage)%>"><img src="<%=theCache.settings["imageFolder"]%>/icon_website.gif" title="<%=helper.HTMLEncodeLite(tUser.homepage)%>" /></a><%}%>
                            </td>
                            <td class="listbox-entry" width="80"><a href="default.asp?user=<%=tUser.id%>" title="<%=__('view_user_article')%>"><%=tUser.articleCount%></a></td>
                            <td class="listbox-entry" width="80"><a href="comment.asp?user=<%=tUser.id%>" title="<%=__('view_user_comment')%>"><%=tUser.commentCount%></a></td>
                            <td class="listbox-entry" width="125"><%=helper.getDateTimeString("",tUser.lastVisit)%></td>
                            <%if(theUser.loggedIn){%>
                            <td class="listbox-entry"><%if(!tUser.hideEmail){%><%=helper.HTMLEncodeLite(tUser.email)%><%}%></td>
                            <%}%>
                        </tr>
                        <%}%>
                    </table>
                </div>
            </div>

            <div class="article-bottom">
                <div class="pages">
                    <%-strPageLinks%>
                </div>
            </div>
        </div>
    </div>
    <% include ../sidebar %>
    <div class="clear"></div>
</div>
<% include ../pageFooter %>
